package com.jk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;

@Data
@TableName(value = "usertable")
public class UserEntity {
    @TableId(type = IdType.AUTO)
    private Integer userId;
    private String userNick;
    private Integer userSex;
    private Integer userAge;
    private String birthday;
    private String userPhone;
    private String userPwd;
    private String userPid;
    private Integer userType;
    private String userImg;
    private Integer userPay;
    private String userOrder;
    @TableField(exist = false)
    private String ids;
    private String userDesc;
    private String userCombo;
    //MD5加盐
    private String salt;
    private Double userPrice;



    //业务字段：验证码
    @TableField(exist = false)
    private String code;
    @TableField(exist = false)
    private String token;



}
